public class User {
    //1. 定义一个用户类，存放用户的账号、用户名和密码属性；定义有参构造函数，对类的属性进行初始化。
    private int id;
    private String name;
    private double key;
    public User(int id,String name,double key){
        this.setId(id);
        this.setName(name);
        this.setKey(key);
    }
    public int getId(){
        return id;
    }
    public void setId(int id){
        this.id=id;
    }
    public String getName(){
        return name;
    }
    public void setName(String name){
        this.name=name;
    }
    public double getKey(){
        return key;
    }
    public void setKey(double key){
        this.key=key;
    }
}
